-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
STY: remove --keep-runtime-typing from pyupgrade Final_Part-5 #40805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@github-actions pre-commit the above hasn't worked - @fathomer could you run pre-commit again please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me pending green
Thanks @fathomer ! |
Thanks @MarcoGorelli for all the help and clear details of the task. |
…-dev#40805) * STY: remove --keep-runtime-typing from pyupgrade pandas-dev#40759 Final_Part-5 * fixup pyupgrade * fixup * fixup * noop Co-authored-by: Marco Gorelli <[email protected]>
To fix issue #40759 :
Changes here are from PEP585 (e.g. List[str] -> list[str]) and from PEP604 (Optional[str] -> str | None), both of which are only applied in the presence of from future import annotations. Some imports became unused after this so those have been removed.
As there were changes in many files (97) this has been split up into 5 smaller PRs.
This is the final PR 5 of 5.
Checks in this one will pass only when other parts are merged as --keep-runtime-typing is removed the pyupgrade precommit hook.
Refer the discussion here : #40773